package com.example.store.service;

import com.example.store.entity.Address;

import java.util.List;

/**收货地址业务层接口*/
public interface IAddressService {
    void insertAddress(Integer uid , String username , Address address);

    List<Address> getByUid(Integer uid);

    /**
     * 修改用户的某个收获地址为默认收获地址
     * @param aid 收获地址aid
     * @param uid 用户uid
     * @param username 修修改执行的人
     */
    void setDefault(Integer aid , Integer uid , String username);

    void delete(Integer aid , Integer uid , String username);

    Address getByAid(Integer aid,Integer uid);
}
